const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  tenantId: state => state.user.tenantId || localStorage.getItem('tenantId'),
  name: state => state.user.name || localStorage.getItem('name'),
  permission_routes: state => state.permission.routes,
  hasGetRoutesApi: state => state.permission.hasGetRoutesApi,
  routesList: state => state.permission.routesList
}
export default getters
